LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

# LOCAL_MODULE    := add
# LOCAL_SRC_FILES := libx264.a
# include $(PREBUILT_STATIC_LIBRARY)

LOCAL_MODULE := minicap-common

LOCAL_SRC_FILES := \
	JpgEncoder.cpp \
	SimpleServer.cpp

LOCAL_STATIC_LIBRARIES := \
	libjpeg-turbo \

LOCAL_SHARED_LIBRARIES := \
	minicap-shared \

include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)

LOCAL_MODULE := minitouch-common

LOCAL_SRC_FILES := \
	minitouch.cpp \
	debug.cpp\

LOCAL_STATIC_LIBRARIES := \
	libevdev \

include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
	JpgEncoder.cpp \
	SimpleServer.cpp \
	minitouch.cpp \
	debug.cpp\
	libmain.cpp \


# common\x264encoder.cpp\
# common\PUX264Encoder.cpp\


# LOCAL_STATIC_LIBRARIES += add 
LOCAL_LDLIBS := -lm -llog

LOCAL_MODULE := miniserver
LOCAL_STATIC_LIBRARIES += libyuv
LOCAL_STATIC_LIBRARIES += minitouch-common
LOCAL_STATIC_LIBRARIES += minicap-common

include $(BUILD_SHARED_LIBRARY)
